package com.jy.modules.cims.data.common.dao;

import java.util.List;
import java.util.Map;

import com.jy.modules.cims.data.common.dto.TCMmCostPlanDTO;
import com.jy.platform.core.mybatis.MyBatisRepository;
/**
 * @classname: TCMmCostPlanDao
 * @description: 定义  结算计划 持久层 接口
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * @author:  zhiqiang
 */
@MyBatisRepository
public interface TCMmCostPlanDao {
    
    /**
     * @author zhiqiang
     * @description: 分页查询结算计划
     * @date 2015-01-07 16:21:49
     * @param searchParams
     * @return
     */
    public List<TCMmCostPlanDTO> searchTCMmCostPlanByPaging(Map<String, Object> searchParams) ;
    
    /**
     * @author zhiqiang
     * @description:查询对象结算计划
     * @date 2015-01-07 16:21:49
     * @param searchParams
     * @return
     */
    public List<TCMmCostPlanDTO> searchTCMmCostPlan(Map<String,Object> searchParams);
    
   /**
    * 批量更新数据
    * @param dataList
    */
    public void updateCostPlanData(List<TCMmCostPlanDTO> dataList);
    
    /**
     * 按照条件查询结算计划数量
     * @param searchParams
     * @return
     */
    public int searchTCMmCostPlanSum(Map<String,Object> searchParams);

    /**
     * @author zhiqiang
     * @description:查询对象结算计划
     * @date 2015-01-07 16:21:49
     * @param id
     * @return
     */
    public TCMmCostPlanDTO findTCMmCostPlanByPrimaryKey(String id);
    
    /**
     * @author zhiqiang
     * @description: 新增对象结算计划
     * @date 2015-01-07 16:21:49
     * @param paramMap
     * @return
     */
    public int insertTCMmCostPlan(Map<String, Object> paramMap);
    
    /**
     * @author zhiqiang
     * @description: 更新对象结算计划
     * @date 2015-01-07 16:21:49
     * @param paramMap
     */
    public void updateTCMmCostPlan(Map<String, Object> paramMap);
    
   
    /**
     * @author zhiqiang
     * @description: 按主键删除结算计划
     * @date 2015-01-07 16:21:49
     * @param ids
     * @return
     */ 
    public void deleteTCMmCostPlanByPrimaryKey(Map<String, Object> paramMap);
    
    
}
